package xju_3_4.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import xju_3_4.entity.Stu;
import xju_3_4.entity.Student;
import xju_3_4.service.UserService;

import java.io.FileNotFoundException;

@Controller
public class StudentController {

    // 调用业务层
    @Autowired
    private UserService userService;

    public void insert(Stu student) throws FileNotFoundException {
        userService.insert(student);
    }
}
